@model ToDoListWeb.Models.CompileMatterModel
@section head{
    <link rel="stylesheet" type="" href="~/css/_compileMatter.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" crossorigin="anonymous">
}
@{
}

<div id="compile-body">
    <div id="compile-title">
        <p>编辑事项</p>
    </div>
    <form id="change-inventory-info" action="/Matter/CompileMatter" method="post">
        <input id="input-none" name="matterId" value="@Model.Matter.MatterId" />
        <div id="select-bottom">
            <select id="choose-type-box" name="inventoryId">
                <option value="@Model.User.Inventory.SingleOrDefault(i=>i.InventoryId==Model.Matter.InventoryId).InventoryId">清单类型：@Model.User.Inventory.SingleOrDefault(i => i.InventoryId == Model.Matter.InventoryId).InventoryName</option>
                @foreach (var item in Model.User.Inventory)
                {
                    if (item.InventoryId != @Model.User.Inventory.SingleOrDefault(t => t.InventoryId == Model.Matter.InventoryId).InventoryId)
                    {
                    <option value="@item.InventoryId">清单类型：@item.InventoryName</option>
                    }
                }
            </select>
        </div>
        <p class="p-remark">编辑事项内容</p>
        <textarea name="matterContent" class="textarea">@Model.Matter.MatterContent</textarea>
        <p class="p-remark">编辑事项备注</p>
        <textarea name="matterRemark" class="textarea">@Model.Matter.Remark</textarea>
        <p class="p-remark">编辑事项过期时间</p>
        <input id="choose-date-input" name="dateTime" type="date" min=@DateTime.Now.ToString("yyyy-MM-dd") />
        <input id="submit" type="submit">
    </form>
    <a id="return" href="/User/ShowEvents"><img id="return-img" src="~/images/返回.png" alt=""></a>
</div>